<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/12/17
 * Time: 8:03
 */
namespace App\Http\Controllers\Admin;
use \App\Http\Controllers;
use App\Models\Adminmenu;


Class IndexController extends BaseController{
     public function __construct(Adminmenu $adminmenu)
     {
          $this->adminmenu = $adminmenu;
     }

     public function getIndex(){
         $adminqmenus = $this->adminmenu->getMenu();
         $adminqmenus = json_encode($adminqmenus);
         return view('admin.index.index',compact('adminqmenus'));
     }


     /**
       * 返回首页欢饮页视图
       */
     public function getMainFream(){
            return view('admin.index.mainFrame');
     }
}